package cn.com.demo.tp07.controller;

import cn.com.demo.tp07.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class mainController {
    @Autowired
    private TestService testService;
    @GetMapping("/number")
    public int test(){
        return testService.getMath();
    }

}
